package data;

public class DeptInfoBean{
	private String deptno;
	private String deptname;
	private String deptaddr;
	private String telephone;
	private String updetpno;
	private String depttype;
	private String depttypename;
	private int subcount;
	
	public String getDeptno() {
		return deptno;
	}
	public void setDeptno(String deptno) {
		this.deptno = deptno;
	}
	public String getDeptname() {
		return deptname;
	}
	public void setDeptname(String deptname) {
		this.deptname = deptname;
	}
	public String getDeptaddr() {
		return deptaddr;
	}
	public void setDeptaddr(String deptaddr) {
		this.deptaddr = deptaddr;
	}
	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	public String getUpdetpno() {
		return updetpno;
	}
	public void setUpdetpno(String updetpno) {
		this.updetpno = updetpno;
	}
	
	public String getDepttype() {
		return depttype;
	}
	public void setDepttype(String depttype) {
		this.depttype = depttype;
	}
	public String getDepttypename() {
		return depttypename;
	}
	public void setDepttypename(String depttypename) {
		this.depttypename = depttypename;
	}
	public int getSubcount() {
		return subcount;
	}
	public void setSubcount(int subcount) {
		this.subcount = subcount;
	}

	public void incSubcount(){
		this.subcount++;
	}
	
	public void decSubcount(){
		if (this.subcount > 0){
			this.subcount--;
		}
	}
	public void addSubcount(final int count){
		this.subcount += count;
	}
	public boolean isTopdept(){
		return deptno.equals(updetpno);
	}
}
